import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter)

const routes = [
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/login/login.vue'),
        meta: {
            title: '登录'
        }
    }, {
        path: '/main',
        name: 'main',
        component: () => import('../views/Main.vue'),
        meta: {
            title: '系统管理'
        }
    }
]
const router = new VueRouter({
    // mode: 'history',
    routes
})

export default router;